import http from './request'

// 封装城市定位的 API
export const getCityPositionApi = () =>
  http.get('/api/city/location', {
    params: { key: '07e54ffb9d2dfaf8f7fdae8f5e1c6e2d' }
  })

// 获取热门城市和城市列表的数据
export const getCityApi = () => http.get('/api/city')

// 搜索城市列表
export const searchCityApi = (kw) =>
  http.get('/api/city/search', {
    params: { kw }
  })
